package org.wk.account.enums;




/**
 * @author df.wu
 * 账户变动方向
 */
public enum SeqFlag {
	/**
	 *来帐 
	 */
	INCOME("income","来账"),
	/**
	 * 往帐
	 */
	EXPEND("expend","往帐");
	private String code;
	private String name;
	private SeqFlag(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	
	public static SeqFlag containsCode(String code) {
		for (SeqFlag item : SeqFlag.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}		
		return null;
	}
			
	/**
	 * @return the code
	 */
	
	public String getCode() {
		return code;
	}
	
	/**
	 * @param code 要设置的 code
	 */
	
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	
	public String getName() {
		return name;
	}
	
	/**
	 * @param name 要设置的 name
	 */
	
	public void setName(String name) {
		this.name = name;
	}
	
	
	
	
	
}
